package com.yidu.sanrenxing.crudall.service.impl;

import com.yidu.sanrenxing.crudall.dao.AdressMsgMapper;
import com.yidu.sanrenxing.crudall.domain.AdressMsg;
import com.yidu.sanrenxing.crudall.service.AdressMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AdressMsgServiceImpl implements AdressMsgService {
    @Autowired
    private AdressMsgMapper adressMsgMapper;

    @Override
    public List<AdressMsg> selectAll() {
        return null;
    }

    @Override
    public int deleteByPrimaryKey(int adressmsgid) {
        return 0;
    }

    @Override
    public int insert(AdressMsg record) {
        return 0;
    }

    @Override
    public int insertSelective(AdressMsg record) {
        return 0;
    }

    @Override
    public AdressMsg selectByPrimaryKey(int adressmsgid) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(AdressMsg record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(AdressMsg record) {
        return 0;
    }

    /**
     * 通过地址信息编号查询地址信息表信息
     * @param adressMsgId
     * @return
     */
    @Override
    public AdressMsg getAdsMsgById(Integer adressMsgId) {
        return adressMsgMapper.getAdsMsgById(adressMsgId);
    }

    /**
     * 修改地址信息表
     * @param adressMsg
     * @return
     */
    @Override
    public Integer updateAdsMsgById(AdressMsg adressMsg) {
        return adressMsgMapper.updateByPrimaryKeySelective(adressMsg);
    }

    @Override
    public Integer addAdsMsg(AdressMsg adressMsg) {
        return adressMsgMapper.addAdsMsg(adressMsg);
    }
}
